import http from './request'

// 封装获取车票列表的 API
export const getTicketListApi = (data) => http.post('/api/trip/train', data)

// 获取车票详情的接口
export const getTicketApi = (id,query) =>
  http.get(`/api/trip/train/${id}`, {params:query})
